{% extends "base.html" %}
{% load i18n imagequery_tags %}

{% block title %}{% blocktrans %}Galerien | fha-django-gallery {% endblocktrans %}{% endblock %}

{% url gallery_detail slug=gallery.slug as gallery_detail %}

{% block breadcrumbs %}
    {% blocktrans with name=gallery.name %}
        Sie befinden sich hier: <a href="/">fha-django-gallery</a> &raquo; 
        <a href="/galerie/">Galerien</a>
    {% endblocktrans %}
{% endblock %}

{% block content %}
    {% for gallery in galleries %}
        <h2><a href="{% url gallery_detail slug=gallery.slug %}">{{ gallery.name }} ({{ gallery.album.all.count }} Bilder)</a></h2>
        {% for image in gallery.album.all %}
            <div class="image-index"><a href="{% url gallery_detail slug=gallery.slug %}"><img src="{% image_format 'gallery_index' image.image %}" alt="" /></a></div>
        {% endfor %}
        <div class="clear"></div>
        <hr/>
    {% endfor %}
{% endblock %}
